@echo off
setlocal enabledelayedexpansion

for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set d=%%a-%%b-%%c
for /f "tokens=1-2 delims=: " %%a in ('time /t') do set t=%%a-%%b

set msg=auto: %d% %t% auto commit

echo Commit message: %msg%

git add .
git commit -m "%msg%"
git push

echo Code has been auto committed and pushed to Gitee.
pause